public class text24 {
    public static void main(String[] args)
    {
        String[] arr  = {"西游记","红楼梦","三国演义","水浒传"};
        System.out.println("数组长度为" + arr.length);

        int i = 0;
        for(i = 0; i < arr.length; i++)
        {
            System.out.print(arr[i] + "\t");
        }
    }
}
